import fetch from 'common/src/utils/fetch'

// 获取志愿排名列表
export function getInterResultRankList(data) {
    return fetch({
        url: '/api/majorservice/interResultRank/list',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}
// 发布录取结果
export function publishInterResultRankList(data) {
    return fetch({
        url: '/api/majorservice/interResultRank/publish',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}
// 查询成绩详情
export function getInterResultList(gradeId, studentId) {
    return fetch({
        url: '/api/majorservice/interResultRank/interResultDetail',
        method: 'post',
        params: { gradeId: gradeId, studentId: studentId },
        headers: { 'Content-Type': 'application/json' },
    });
}
// 导出志愿排序列表
export function exportInterResultRank(data) {
    return fetch({
        url: '/api/majorservice/interResultRank/export',
        method: 'post',
        headers: { 'Content-Type': 'application/json' },
        data
    });
}

export function getReportStatus(key) {
    return fetch({
        url: `/api/majorservice/common/exportExcelResult/${key}`,
        method: 'get'
    });
}

export function getProcessResult(key) {
    return fetch({
        url: `/api/majorservice/common/asyncProcessResult/${key}`,
        method: 'get'
    });
}

